package com.shanjupay.merchant.convert;


import com.shanjupay.merchant.api.dto.StaffDTO;
import com.shanjupay.merchant.entity.Staff;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;

@Mapper
public interface StaffConvert {
    StaffConvert  INSTANCE = Mappers.getMapper(StaffConvert.class);
    //2entity 转化dto
    StaffDTO  entity2dto(Staff staff);
    //3dto转化entity
    Staff  dto2entity(StaffDTO staffDTO);
    //4list<entity> 转化list<dto>
    List<StaffDTO> listentity2dto(List<Staff> staffs);
}
